//
//  SISSSZNotaryOfficeViewController.m
//  SISSAPP
//
//  Created by 袁应荣 on 2018/4/10.
//  Copyright © 2018年 优房网. All rights reserved.
//

#import "SISSSZNotaryOfficeViewController.h"
#import "SISSBaseWebViewController.h"
#import "SISSAutoSizeImageShowViewController.h"

@interface SISSSZNotaryOfficeViewController ()

@end

@implementation SISSSZNotaryOfficeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   
     self.dataSource = @[@"网点查询", @"在线预约（需注册）", @"在线预约流程", @"在线申办", @"在线申办流程"];
    
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    
    switch (indexPath.row) {
        case 0: {
            SISSBaseWebViewController *vc = [[SISSBaseWebViewController alloc] init];
            vc.title = self.dataSource[indexPath.row];
            vc.url = @"http://www.szgz.gov.cn/cityService/toIndex.htm";
            [self.navigationController pushViewController:vc animated:YES];
        }
            break;
            
        case 1: {
            SISSBaseWebViewController *vc = [[SISSBaseWebViewController alloc] init];
            vc.title = self.dataSource[indexPath.row];
            vc.url = @"http://www.szgz.gov.cn/cityService/toIndex.htm";
            [self.navigationController pushViewController:vc animated:YES];
        }
            break;
            
        case 2: { // 担保赎楼（持红本房产证的无此环节）
            SISSAutoSizeImageShowViewController *vc = [[SISSAutoSizeImageShowViewController alloc] init];
            vc.title = self.dataSource[indexPath.row];
            vc.imageArr = [[NSArray alloc] initWithObjects:
                           [UIImage imageNamed:@"importantNoti01"],
                           nil];
            [self.navigationController pushViewController:vc animated:YES];
        }
            break;
            
        case 3: { //
            SISSBaseWebViewController *vc = [[SISSBaseWebViewController alloc] init];
            vc.title = self.dataSource[indexPath.row];
            vc.url = @"http://www.szgz.gov.cn/waphtm/postOnlineBidminshi.wap";
            [self.navigationController pushViewController:vc animated:YES];
        }
            break;
            
        case 4: { // 担保赎楼（持红本房产证的无此环节）
            SISSAutoSizeImageShowViewController *vc = [[SISSAutoSizeImageShowViewController alloc] init];
            vc.title = self.dataSource[indexPath.row];
            vc.imageArr = [[NSArray alloc] initWithObjects:
                           [UIImage imageNamed:@"importantNotiProcess01"],
                           nil];
            [self.navigationController pushViewController:vc animated:YES];
        }
            break;
            
        default:
            break;
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
